﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace RSA
{
    public partial class Show : Form
    {
        public int Kode;
        public Show()
        {
            InitializeComponent();
            Kode = 1;
        }

        public Show(int kode)
        {
            InitializeComponent();
            Kode = kode;
        }

        public void showinfo(String s)
        {
            richTextBox1.Text = s;
            if (Kode == 1)
                label1.Text = "Plaintext";
            else if (Kode == 2)
                label1.Text = "Ciphertext";
            else if (Kode == 3)
                label1.Text = "Private Key";
            else
                label1.Text = "Public Key";
        }

        private void close(object sender, FormClosedEventArgs e)
        {
            if (Kode%2 == 1)
                Form1.b1 = false;
            else
                Form1.b2 = false;
        }
    }
}
